package tmp;

import java.io.Serializable;

/**
 * Created by dycong on 2017/2/28.
 */
public class Animal implements Serializable {
    private static final long serialVersionUID = -213221189192962074L;

    private String name;

    private House house;

    public Animal(String name , House house) {
        this.name = name;
        this.house = house;
        System.out.println("调用了构造器");
    }

    public String toString() {
        return  name + "[" +super.toString() + "']" + house;
    }
}
